package com.rqbl.service;

import com.rqbl.entity.Post;
import com.rqbl.myutils.PageBean;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author bruce
 * @since 2024-07-19
 */
public interface PostService {

    List<Post> getPostByPage(PageBean page,Integer bid);

    Post getPostByPid(Integer pid);

    //删除某条帖子
    Integer deletePostById(Integer pid);

    List<Post> getPostByPageUid(PageBean pageBean, Integer bid);

    Integer addPost(Post post);
}
